/**
 * Created by ZhouWei on 2017/7/1.
 */
var limit1=20;
var cssObj={
    zhibo:false,
    zitisheG:2,
    jiemian:0,
    quyuan:false,
    ziti:1,
    qishu:20,
    qianyiziti:false,
    qiansanziti:true,
    lianhaobeijing:false,
    Color:{
        qihaobg:$(".issue").css("background-color"),
        qihaofc:$(".issue").css("color"),
        wuweikaijianghaobg:$(".lotteryNumber").css("background-color"),
        wuweikaijianghaofc:$(".lotteryNumber").css("color"),
        renxuanfenbubg:$(".lotteryNumber").css("background-color"),
        renxuanfenbufc:$(".lotteryNumber").css("color"),
        qiansanweilianxianbg:$(".firstCon").css("background-color"),
        qiansanweilianxianfc:$(".firstCon").css("color"),
        guanzhuhaomabg:$(".attentionNum").css("background-color"),
        guanzhuhaomafc:$(".attentionNum").css("color"),
        sanweikaijianghaobg:$(".threeLotteryNumber").css("background-color"),
        sanweikaijianghaofc:$(".threeLotteryNumber").css("color"),
        qiansanheweilianxianbg:$(".firstThreeTails").css("background-color"),
        qiansanheweilianxianfc:$(".firstThreeTails").css("color"),
        hezhidaxiaobg:$(".firstThreeValuesBs").css("background-color"),
        hezhidaxiaofc:$(".firstThreeValuesBs").css("color"),
        qianzhibg:$(".firstThreeValues").css("background-color"),
        qianzhifc:$(".firstThreeValues").css("color"),
        hezhidanshuangbg:$(".andValueSd").css("background-color"),
        hezhidanshuangfc:$(".andValueSd").css("color"),
        hezhibg:$(".andValueAll").css("background-color"),
        hezhifc:$(".andValueAll").css("color"),
        jishubg:$(".Odd").css("background-color"),
        jishufc:$(".Odd").css("color"),
        dashubg:$(".bigNum").css("background-color"),
        dashufc:$(".bigNum").css("color"),
        qianchongbg:$(".theFormer").css("background-color"),
        qianchongfc:$(".theFormer").css("color"),
        qianchonglianxianbg:$(".theFormerLine").css("background-color"),
        qianchonglianxianfc:$(".theFormerLine").css("color"),
        chonghaolianxianbg:$(".heavyNumberLine").css("background-color"),
        chonghaolianxianfc:$(".heavyNumberLine").css("color"),
        qiansanzufenbubg:$(".threeGroupsDis").css("background-color"),
        qiansanzufenbufc:$(".threeGroupsDis").css("color"),
        kuadubg:$(".spanDataTable").css("background-color"),
        kuadufc:$(".spanDataTable").css("color"),
        kuadulianxianbg:$(".spanDataTableLine").css("background-color"),
        kuadulianxianfc:$(".spanDataTableLine").css("color"),
        qiankuabg:$(".beforeCross").css("background-color"),
        qiankuafc:$(".beforeCross").css("color"),
        qiankualianxianbg:$(".beforeCrossLine").css("background-color"),
        qiankualianxianfc:$(".beforeCrossLine").css("color")
    }

};


function ajaxFunction(){
    //获取往期数据
    $.ajax({
        type: 'POST',
        url: "http://zcai.cn/getLotteryNum",
        data: {
            type:1,
            limit:limit1
        },
        async:false,
        success: function (res) {
            obj = res.data.reverse();
            testObj = res.data;
        },
        error:function (err) {
            alert(err);
        }
    });
}
function getRecommend() {
    //二码 三码 四码推荐
    $.ajax({
        type: 'POST',
        url: "http://zcai.cn/getRecommend",
        data: {
            type:1
        },
        async:false,
        success: function (res) {
            recommend = res.data;
            recommendTwo = res.data;
        },
        error:function (err) {
            alert(err);
        }
    });
}
function getMissing() {
    //遗漏统计
    $.ajax({
        type: 'POST',
        url: "http://zcai.cn/getMissing",
        data: {
            type:1
        },
        async:false,
        success: function (res) {
            missObj = res.data;
            missObjTwo = res.data;
        },
        error:function (err) {
            alert(err);
        }
    });
}
function getLottTime(){
    //获取彩票开奖时间
    $.ajax({
        type: 'POST',
        url: "http://zcai.cn//getLotteryTime",
        data: {
            type:1
        },
        async:false,
        success: function (res) {
            lotteryTime = res.data;
            if(res.msg == 1){
                var min = parseInt(lotteryTime.n_time/60);
                var second = lotteryTime.n_time%60;
                lotteryTime.min = min;
                lotteryTime.second = second;
            }else{
                lotteryTime.text = "暂未开售";
            }
        },
        error:function (err) {
            alert(err);
        }
    });
}













